.class public Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;
.super Ljava/lang/Object;
.source "ViewSendGlympse.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/content/DialogInterface$OnDismissListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewSendGlympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "OnClickDurations"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewSendGlympse;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/ViewSendGlympse;)V
    .locals 0
    .parameter

    .prologue
    .line 1132
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "oView"

    .prologue
    const/4 v6, 0x1

    .line 1137
    const-string v2, "Durations"

    invoke-static {v2}, Lcom/glympse/android/glympse/DlgBase;->IsCreated(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 1139
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    new-instance v3, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v5}, Lcom/glympse/android/glympse/ViewSendGlympse;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-direct {v3, v4, v5}, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;-><init>(Lcom/glympse/android/glympse/ViewSendGlympse;Landroid/content/Context;)V

    invoke-static {v2, v3}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$13(Lcom/glympse/android/glympse/ViewSendGlympse;Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;)V

    .line 1140
    new-instance v0, Lcom/glympse/android/glympse/DlgList;

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "Durations"

    invoke-direct {v0, v2, v3}, Lcom/glympse/android/glympse/DlgList;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 1141
    .local v0, oDlgList:Lcom/glympse/android/glympse/DlgList;
    const v2, 0x7f020041

    invoke-virtual {v0, v2}, Lcom/glympse/android/glympse/DlgList;->SetTitleIcon(I)V

    .line 1142
    const v2, 0x7f0a006f

    invoke-virtual {v0, v2}, Lcom/glympse/android/glympse/DlgList;->SetTitleText(I)V

    .line 1144
    invoke-virtual {v0, p0}, Lcom/glympse/android/glympse/DlgList;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 1146
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$7(Lcom/glympse/android/glympse/ViewSendGlympse;)Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;

    move-result-object v2

    iget-object v3, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v3}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$7(Lcom/glympse/android/glympse/ViewSendGlympse;)Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;

    move-result-object v3

    invoke-virtual {v0, v2, v3, v6}, Lcom/glympse/android/glympse/DlgList;->SetListAdapter(Landroid/widget/ListAdapter;Landroid/widget/AdapterView$OnItemClickListener;Z)Landroid/widget/ListView;

    move-result-object v1

    .line 1149
    .local v1, oListView:Landroid/widget/ListView;
    invoke-virtual {v1, v6}, Landroid/widget/ListView;->setChoiceMode(I)V

    .line 1150
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsModify()Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$5(Lcom/glympse/android/glympse/ViewSendGlympse;)I

    move-result v2

    :goto_0
    invoke-virtual {v1, v2, v6}, Landroid/widget/ListView;->setItemChecked(IZ)V

    .line 1151
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsModify()Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$5(Lcom/glympse/android/glympse/ViewSendGlympse;)I

    move-result v2

    :goto_1
    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setSelection(I)V

    .line 1153
    sget-object v2, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v2, v0}, Lcom/glympse/android/glympse/Glympse;->QueueDialog(Landroid/app/Dialog;)Z

    .line 1155
    .end local v0           #oDlgList:Lcom/glympse/android/glympse/DlgList;
    .end local v1           #oListView:Landroid/widget/ListView;
    :cond_0
    return-void

    .line 1150
    .restart local v0       #oDlgList:Lcom/glympse/android/glympse/DlgList;
    .restart local v1       #oListView:Landroid/widget/ListView;
    :cond_1
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$5(Lcom/glympse/android/glympse/ViewSendGlympse;)I

    move-result v2

    sub-int/2addr v2, v6

    goto :goto_0

    .line 1151
    :cond_2
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$5(Lcom/glympse/android/glympse/ViewSendGlympse;)I

    move-result v2

    sub-int/2addr v2, v6

    goto :goto_1
.end method

.method public onDismiss(Landroid/content/DialogInterface;)V
    .locals 2
    .parameter "dialog"

    .prologue
    .line 1160
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickDurations;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$13(Lcom/glympse/android/glympse/ViewSendGlympse;Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;)V

    .line 1161
    return-void
.end method
